const obj = {
  name: 'cuifan',
  year: 2021,
  dead: 2200,
  obj1: {
    name: 'obj1'
  },
  [Symbol.iterator]: 'cf'
}

console.log(Object.values(obj));
console.log(Object.entries(obj));
let values = Object.values(obj)
values[values.length - 1].name = 'cuifanfan'
console.log(obj);
Object.entries(obj)[3][1].name = 'qqqqq'
console.log(obj);